package com.ruoyi.custom.mapper;

import java.util.List;
import com.ruoyi.custom.domain.StockPortfolio;

/**
 * 股票持仓Mapper接口
 * 
 * @author ruoyi
 * @date 2025-02-04
 */
public interface StockPortfolioMapper 
{
    /**
     * 查询股票持仓
     * 
     * @param id 股票持仓主键
     * @return 股票持仓
     */
    public StockPortfolio selectStockPortfolioById(Long id);

    /**
     * 查询股票持仓列表
     * 
     * @param stockPortfolio 股票持仓
     * @return 股票持仓集合
     */
    public List<StockPortfolio> selectStockPortfolioList(StockPortfolio stockPortfolio);

    /**
     * 新增股票持仓
     * 
     * @param stockPortfolio 股票持仓
     * @return 结果
     */
    public int insertStockPortfolio(StockPortfolio stockPortfolio);

    /**
     * 修改股票持仓
     * 
     * @param stockPortfolio 股票持仓
     * @return 结果
     */
    public int updateStockPortfolio(StockPortfolio stockPortfolio);

    /**
     * 删除股票持仓
     * 
     * @param id 股票持仓主键
     * @return 结果
     */
    public int deleteStockPortfolioById(Long id);

    /**
     * 批量删除股票持仓
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteStockPortfolioByIds(Long[] ids);
}
